from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app
from google.appengine.api import users
from view import baseview
from presenter import discussiontopicspresenter

class DiscussionTopicsView(baseview.BaseView):
  def get(self):
    self.templatefile = "templates/discussiontopics.html"
    presenter = discussiontopicspresenter.DiscussionTopicsPresenter(request=self.request, currentuser=users.get_current_user(), view=self)
    presenter.respondToGet()

application = webapp.WSGIApplication(
                                     [('/discussiontopics', DiscussionTopicsView)],
                                     debug=True)

def main():
  run_wsgi_app(application)

if __name__ == "__main__":
  main()